<include file="Public:header" />

<div id="page-body">
    <div id="qan-breadcrumbs"><span><a href="{$_global.site_url}">{$Think.lang.home}</a></span>&gt;&nbsp;<span><a href="{$team.team_id|format_team_url=$team['name']}">{$team.name}</a></span>&gt;&nbsp;<span>{$Think.lang.team_qa}</span></div>
    <div id="qan-content">
        <div id="user-questions">
            <ul id="qa-nav" class="tabs">
                <li <eq name="type" value="all">class="current"</eq>><a href="{:U('Team/qa',array('tid'=>$team['team_id'],'type'=>'all'))}">{$Think.lang.team_all_answers}</a></li>
                <li <eq name="type" value="recent">class="current"</eq>><a href="{:U('Team/qa',array('tid'=>$team['team_id'],'type'=>'recent'))}">{$Think.lang.team_recent_answers}</a></li>
                <li <eq name="type" value="teamwork">class="current"</eq>><a href="{:U('Team/qa',array('tid'=>$team['team_id'],'type'=>'teamwork'))}">{$Think.lang.team_teamwork_answers}</a></li>
                <li <eq name="type" value="best">class="current"</eq>><a href="{:U('Team/qa',array('tid'=>$team['team_id'],'type'=>'best'))}">{$Think.lang.team_best_answers}</a></li>
            </ul>
            <notempty name="questions">
            <ul class="questions">
                <volist name="questions" id="vo" mod="2">
                <li id="question-{$vo.question_id}" class="item <eq name="mod" value="0">alt</eq>">
                    <div class="avatar"><a href="{$vo.user_id|format_user_url=$vo['username']}"><img src="{$vo.email|get_avatar}" alt="{$vo.username}" /></a></div>
                    <div class="info">
                        <h3><a href="{$vo.question_id|format_question_url=$vo['title']}">{$vo.title}</a> - <span class="status">{$vo.status|get_question_status}</span></h3>
                        <ul class="meta">
                            <li class="stars"><a href="#nogo"><span class="star-count has-stars">{$vo.star_count}</span><span class="star">Stars</span></a></li>
                            <li>{$Think.lang.asked_by} <a href="{$vo.user_id|format_user_url=$vo['username']}">{$vo.username}</a> - </li>
                            <li>{$Think.lang.in} <a href="{$vo.category_id|format_category_url}">{$vo.category_id|get_category_name}</a> - </li>
                            <li>{$vo.answer_count} {$Think.lang.answer_count} - </li>
                            <li><abbr title="{$vo.create_time|format_date}">{$vo.create_time|pretty_date}</abbr></li>
                        </ul>
                    </div>
                </li>
                </volist>
            </ul>
            <div class="pagination">{$pagination}</div>
            <else/>
            <p class="no-results">{$Think.lang.team_no_results}</p>
            </notempty>
        </div>
    </div>
	<!-- team right sidebar -->
    <div id="qan-sidebar">
        <include file="Team:sidebar" />
    </div>
</div>

<include file="Public:footer" />

<load href="__PUBLIC__/Js/jquery.selectAll.js" />
<script type="text/javascript">
$('#mark-all').selectAll({range:'.mark'});
</script>
